package 面向对象;

public class Student {
    int id;
    String name;
    int age;
    String sex;

    public Student(){
        //soutm
        System.out.println("Student.Student");
    }
    public Student(int id , String name , int age , String sex){
        this.age=age;
        this.name=name;
        this.id=id;
        this.sex=sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
